package com.yunfeisoft.business.service.impl;

import com.applet.base.BaseServiceImpl;
import com.yunfeisoft.business.dao.inter.CmsPrefrenceAreaProductRelationDao;
import com.yunfeisoft.business.model.CmsPrefrenceAreaProductRelation;
import com.yunfeisoft.business.service.inter.CmsPrefrenceAreaProductRelationService;
import com.applet.sql.separation.DataSourceChange;
import com.applet.utils.Page;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * ClassName: CmsPrefrenceAreaProductRelationServiceImpl
 * Description: 优选专区和产品关系表service实现
 * Author: Jackie liu
 * Date: 2020-06-02
 */
@Service("cmsPrefrenceAreaProductRelationService")
public class CmsPrefrenceAreaProductRelationServiceImpl extends BaseServiceImpl<CmsPrefrenceAreaProductRelation, String, CmsPrefrenceAreaProductRelationDao> implements CmsPrefrenceAreaProductRelationService {

    @Override
    @DataSourceChange(slave = true)
    public Page<CmsPrefrenceAreaProductRelation> queryPage(Map<String, Object> params) {
        return getDao().queryPage(params);
    }
}